package com.thinkgem.jeesite.common.utils;

/**
 * @author John
 * @Date 2016/3/31
 */
public class SmartCard{
    static{
        System.loadLibrary("MifsDLL");
    }

    private native int iniCom(int ComPort,int BaudRate);
    private native int closeCom(int ComPort);
    private native String readPersonalInfo(int ComPort);

    public int iniComTemp(int ComPort,int BaudRate){
        return this.iniCom(ComPort,BaudRate);
    }
    public int closeComTemp(int ComPort){
        return this.closeCom(ComPort);
    }
    public String readPersonalInfoTemp(int ComPort){
        return this.readPersonalInfo(ComPort);
    }
    public static void main(String[] args){}
}
